import Vue from "vue";
import Router from "vue-router";

Vue.use(Router);

const router = new Router({
  routes: [
    {
      path: "/login",
      component: () => import("../views/login")
    },
    // {
    //   path: "/",
    //   component: () => import("../views/admin"),
    //   redirect: "admin/home",
    // },
    {
      path: "/admin",
      component: () => import("../views/admin"),
      redirect: "admin/home",
      children: [
        {
          path: "home",
          meta: { title: "系统首页" },
          component: () => import("../views/pages/home")
        },
        {
          path:"agriculand",
          meta:{title:"农业用地"},
          component: () => import("../views/pages/agriculand")
        },
        {
          path: "table",
          meta: { title: "列表数据" },
          component: () => import("../views/pages/table"),
        },
        {
          path:'reportbox',
          meta:{title:'收件箱'},
          component:()=> import("../views/Reportbox/Reportbox")
        },
        {
          path:'dueyj',
          meta:{title:'到期预警'},
          component:()=> import("../views/RegAnalysis/dueyj")
        },
        {
          path:'overdueyj',
          meta:{title:'超期预警'},
          component:()=> import("../views/RegAnalysis/overdueyj")
        },
        {
          path:'dataVerification',
          meta:{title:'数据查验'},
          component:()=> import("../views/dataVerification/dataVerification")
        },
        {
          path:'fieldVerification',
          meta:{title:'外业核查'},
          component:()=> import("../views/fieldVerification/fieldVerification")
        },
        {
          path:'cityVerification',
          meta:{title:'市级审查'},
          component:()=> import("../views/cityVerification/cityVerification")
        },
        {
          path:'indicatorpjt',
          meta:{title:'指标入库项目'},
          component:()=> import("../views/indicatorpjt/indicatorpjt")
        },
        {
          path:'provincialVerification',
          meta:{title:'省级审查'},
          component:()=> import("../views/provincialVerification/provincialVerification")
        },
        {
          path:'problemitem',
          math:{title:'问题项目'},
          component:()=> import("../views/problemitem/problemitem")
        },
        {
          path:'reportingproject',
          math:{title:'报部备案'},
          component:()=> import("../views/reportingproject/reportingproject")
        },
        {
          path:'Recordproject',
          math:{title:'备案项目查询'},
          component:()=> import("../views/Recordproject/Recordproject")
        },
        {
          path:'maintenance',
          math:{title:'管护期核实'},
          component:()=> import("../views/maintenance/maintenance")
        },
        {
          path:'password',
           math:{title:"密码修改"},
           component:()=> import("../views/password/password")
        },
        {
          path:'Acquisition',
          math:{title:'取得用地情况'},
          component:()=> import("../views/Acquisition/Acquisition")
        },
        {
          path:'historicalproject',
          math:{title:'历史项目'},
          component:()=> import("../views/historicalproject/historicalproject")
        },
        {
          path:'projectconstruction',
          math:{title:'项目建设情况'},
          component:()=> import("../views/projectconstruction/projectconstruction")
        },
        {
          path:'projectchange',
          math:{title:'项目变更情况'},
          component:()=> import("../views/projectchange/projectchange")
        },
        {
          path:'statisticalanalysis',
          math:{title:'统计分析'},
          component:()=> import("../views/statisticalanalysis/statisticalanalysis")
        },
        {
          path:'department',
          math:{title:'部系统查询'},
          component:()=> import("../views/Department/Department")
        }
      ]
    },
    {
      path: "*",
      component: () => import("../views/pages/404.vue")
    }
  ]
});

export default router;
